#include "groupnoticeitem.h"
#include "ui_groupnoticeitem.h"

GroupNoticeItem::GroupNoticeItem(struct st_gNotice _gnotice,QWidget *parent) :
    QWidget(parent),
    ui(new Ui::GroupNoticeItem)
{
    ui->setupUi(this);

    gnotice = _gnotice;

    ui->lab_info->setText(gnotice.content);

    setQssStyle(QString("../style/GroupNoticeItem.qss"),this);

    QString tip = QString("群公告\n%1\n%2").arg(gnotice.content).arg(gnotice.sendtime);
    ui->lab_info->setToolTip(tip);

}

GroupNoticeItem::~GroupNoticeItem()
{
    delete ui;
}
